package com.proyemp.instancia;


import java.util.ArrayList;
import java.util.List;

public class Sender{

    public Result send(AbstractContract contrato){
    	
    	SolverFactory factory = new SolverFactory();
    	List listaContrato = new ArrayList();
    	listaContrato.add(contrato);
    	AbstractSolver miSolver = (AbstractSolver) factory.getSolver(listaContrato);
        return (Result)miSolver.solve(listaContrato).get(0);
    }

}